package com.zhaogang.service.impl;

import java.util.List;
import com.zhaogang.dao.IEmployeeDAO;
import com.zhaogang.dao.impl.EmployeeDAOImpl;
import com.zhaogang.employee.Employee;
import com.zhaogang.service.IEmployeeService;

public class EmployeeServiceImpl implements IEmployeeService {
	private IEmployeeDAO dao = new EmployeeDAOImpl();

	@Override
	public List<Employee> queryList() {
		return dao.queryList();
	}

	@Override
	public void deleteObject(Integer id) {
		
		dao.deleteObject(id);
	}

	@Override
	public void insertObject(Employee employee) {
		
		dao.insertObject(employee);	
	}

	@Override
	public Employee queryObject(Integer id) {
		return dao.queryObject(id);
	}

	@Override
	public void updateObject(Employee employee ) {
	
		dao.updateObject(employee);
	}	
	}


